package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.TravelContent;
import cn.wolfcode.trip.base.query.TravelQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {
    PageInfo getPageInfo(TravelQuery qo);

    Long  save(Travel travel);

    Travel get(Long id);

    void update(Travel travel);

    void changeState(Travel ravel);

    TravelContent getTravelContentById(Long travelId);

    /**
     * admin 查询攻略关联游记
     * @param
     * @return
     */
    PageInfo queryStrategyTravel(TravelQuery qo);

    /**
     * app 获取攻略游记展示
     * @param strategyId
     * @return
     */
    List<Travel> achieveStrategyTravelsByStrategyId(Long strategyId);
}
